﻿using UnityEngine;
using System.Collections;
using strange.extensions.mediation.impl;
using strange.extensions.context.api;
using strange.extensions.dispatcher.eventdispatcher.api;

namespace NormalBattleIoc
{
    public class GameOverMediator : Mediator
    {
        [Inject]
        public GameOverView view { get; set; }

        [Inject(ContextKeys.CONTEXT_DISPATCHER)]//全局的dispatcher
        public IEventDispatcher dispatcher { get; set; }

        /// <summary>
        /// 这里做初始化的操作，相当于start
        /// </summary>
        public override void OnRegister()
        {
            // view.ShowThisUI();

           // AddAttackButtonClickFunc();

           // dispatcher.AddListener(BattleUIEvent.OPEN_Person_OperationPanel, OnOpenPerson_OperationPanel);

           // dispatcher.AddListener(BattleUIEvent.Close_All_Panel, OnCloseAll_Panel);
        }


    }
}